package com.lvbaoins.creditapp.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * vo与前台进行交互
 */
@Data
@ApiModel(value = "注册实体")
public class InsCustomerXdVo {

    @ApiModelProperty(name = "openId", value = "openId", dataType = "stirng", required = true)
    @NotBlank(message = "openId不能为空")
    private String openId;
    @ApiModelProperty(name = "phone", value = "手机号", dataType = "stirng", required = true)
    @NotBlank(message = "手机号不能为空")
    @Length(min = 11, max = 11, message = "请输入正确的手机号")
    private String phone;
    @ApiModelProperty(name = "name", value = "名字", dataType = "stirng", required = true)
    @NotBlank(message = "名字不能为空")
    private String name;
    @ApiModelProperty(name = "nickName", value = "nickName", dataType = "stirng", required = false)
    private String nickName;
    @ApiModelProperty(name = "avatarUrl", value = "头像url", dataType = "stirng", required = false)
    private String avatarUrl;
    @ApiModelProperty(name = "country", value = "县城", dataType = "stirng", required = false)
    private String country;
    @ApiModelProperty(name = "province", value = "省份", dataType = "stirng", required = false)
    private String province;
    @ApiModelProperty(name = "city", value = "城市", dataType = "stirng", required = false)
    private String city;
    @ApiModelProperty(name = "language", value = "语言", dataType = "stirng", required = false)
    private String language;
    @ApiModelProperty(name = "gender", value = "性别", dataType = "stirng", required = false)
    private String gender;

}
